package esim.service.supports;

import esim.service.feign.cmiot.TransId;

import java.util.UUID;

/**
 * @Author: wbb
 * @Date: 2021/4/6 19:28
 */
public class ShdzfpTransId extends TransId {
    public ShdzfpTransId(String prefix) {
        super(prefix);
    }

    @Override
    public String join(String prefix, String time, int sequence) {
        String random = UUID.randomUUID().toString().substring(0, 8);
        return String.format("%s%s%s%03d", prefix, time, random, sequence);
    }
}
